/**
 * Created by KAYE on 2017/2/13 0013.
 */
import Vue from 'vue';
Vue.filter('datefmt',function(value){
    let date = new Date(value);
    let y = date.getFullYear();
    let m = date.getMonth()+1;
    let d = date.getDate();
    let hh = date.getHours();
    let mm = date.getMinutes();
    let ss = date.getSeconds();

    var fmtStr=y+"-"+m+"-"+d+"  "+hh+":"+mm+":"+ss;
    return fmtStr;
})